package satellite_service_enum

// 卫星定位服务办理步骤
type stalliteServiceStep int

var StalliteServiceStep stalliteServiceStep

// 受理
func (c *stalliteServiceStep) Accept() int {
	return 1
}

// 缴费验证
func (c *stalliteServiceStep) PaymentVerification() int {
	return 2
}

// 已派单
func (c *stalliteServiceStep) AlreadyDispatch() int {
	return 3
}

// 仓库出库
func (c *stalliteServiceStep) WarehouseOut() int {
	return 4
}

// 工程部接单
func (c *stalliteServiceStep) EngineeringOrder() int {
	return 5
}

// 部分安装
func (c *stalliteServiceStep) InstallSection() int {
	return 6
}

// 全部安装
func (c *stalliteServiceStep) InstallAll() int {
	return 7
}

func (c *stalliteServiceStep) ToText(value int) string {
	switch value {

	case 1:
		return "受理"

	case 2:
		return "缴费验证"

	case 3:
		return "已派单"

	case 4:
		return "仓库出库"

	case 5:
		return "工程部接单"

	case 6:
		return "部分安装"

	case 7:
		return "全部安装"

	}
	return ""
}

func (c *stalliteServiceStep) ToValue(text string) int {
	switch text {

	case "受理":
		return 1

	case "缴费验证":
		return 2

	case "已派单":
		return 3

	case "仓库出库":
		return 4

	case "工程部接单":
		return 5

	case "部分安装":
		return 6

	case "全部安装":
		return 7

	}
	return 0
}
